home *** CD-ROM | disk | FTP | other *** search
/ F1 Licenseware / F1 Licenseware - Volume 1.iso / disks / 028.dms / 028.adf / Tutorials / Tutorial_2 < prev    next >
Encoding:
Text File  |  1993-08-08  |  3.3 KB  |  83 lines

  1.                Tutorial 2
  2.  
  3.                Making a text disk
  4.  
  5. The disk, Tutorial: is to become a simple autobooting disk that loads and
  6. displays some text on the screen.  This is not as easy as it looks because
  7. all disks need special files on them to run.  Some of them are not always
  8. needed but we will be copying them all so any autobooting (a posh word for
  9. loading when you put it in the drive) disk you make will have all the 
  10. necessary files on it.  Now we will need to explore some of the theory 
  11. behind autobooting disks first, so they become easier to understand.  When
  12. a disk is put in the drive after turning the Amiga on, at the Insert Disk
  13. screen (purple with an animated disk going into the drive), AmigaDOS, the
  14. Amiga's operating system, checks it for a bootblock.  This is a small part
  15. of the disk that makes it autobooting.  To put a bootblock on a disk, you
  16. use the command install.  We will put a bootblock onto Tutorial: now, by
  17. typing
  18.  
  19.     Install ?
  20.  
  21. at the CLI prompt.  A `template' like that for the Format command comes up.
  22. Just put the Tutorial: disk in the drive then type Df0:.  A bootblock is 
  23. written to the disk.  But a bootblock is not the only thing that makes a
  24. disk autobooting.  If you reset the computer and put Tutorial: in the drive
  25. now, a CLI prompt would come up and that would be it.  This is because 
  26. AmigaDOS needs a file called the Startup-sequence to tell it what to do on
  27. the disk.  Before we make that sequence, we have o copy some files to
  28. Tutorial:.  Type these lines at a CLI prompt, pressing RETURN after each
  29. one...
  30.  
  31.     Resident C:copy
  32.     CD SYS:
  33.     Copy Devs/System-Configuration to RAM:
  34.     Copy C:Type to RAM:
  35.     CD RAM:
  36.     Copy System-Configuration to Tutorial:Devs
  37.     Copy Type to Tutorial:C
  38.     CD SYS:
  39.  
  40. Type is the AmigaDOS command that prints text to the screen.  System-
  41. configuration is a file that tells the computer which colours the screen is
  42. to be in, the current printer and much  more.  It is like a shortened 
  43. version of Preferences for a few small things.  
  44.  
  45. Now is the time to take out a pen and do a bit of writing!  If you have a 
  46. printer connected and set up, click on Print File to get a hard copy of 
  47. this text, otherwise write down these instructions before you type
  48. them in.
  49.  
  50. ******START
  51.  
  52.     Ed Tutorial:S/Startup-Sequence
  53.     
  54. Type the line 
  55.  
  56.     Type Message
  57.  
  58. In the Ed window then select Save from the menu and delete the line you 
  59. have just written and type a short message, anything you like, and choose
  60. the menu option Save As...  Select the root directory of Tutorial (the disk
  61. itself, not inside any drawers) and delete the name (which currently reads
  62. startup-sequence) and type Message.  Then quit Ed and return to this text.
  63.  
  64. ******END
  65.  
  66. Now finish reading this text and then try loading Tutorial:.  if it fails, 
  67. read this text again, using the command Dir to make sure everything is in
  68. order.  Dir <directory name> lets you see inside a drawer.  Use the Copy
  69. command to copy files to a different place if they are positioned 
  70. incorrectly.
  71.  
  72. Checklist
  73.  
  74. Now you can...
  75.  
  76.     o Install a disk so it is bootable
  77.     o Copy files to any destination
  78.     o Use Ed, the Amiga's text-editor to write text files
  79.     o Make a disk that is autobooting
  80.     o Use the Type command to type some text to the screen
  81.  
  82. Now switch your computer off for the day or continue to Tutorial 3.
  83.